home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / amos / AMOS_0795.lzh / AMOSLIST / 000098_amos-request@svcs1.digex.net_Fri Jul 21 10:17:07 1995.msg < prev    next >
Internet Message Format  |  1995-08-04  |  2KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id KAA22875;  for  ; Fri, 21 Jul 1995 10:17:05 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id HAA19861 for amos-out; Fri, 21 Jul 1995 07:47:20 -0400
  3. Received: from access5.digex.net (qlUkZ3NHpJvic@access5.digex.net [205.197.245.196]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id HAA19858 for <amos-list@svcs1.digex.net>; Fri, 21 Jul 1995 07:47:18 -0400
  4. Received: (from mcox@localhost) by access5.digex.net (8.6.12/8.6.12) id HAA29957 ; for ; Fri, 21 Jul 1995 07:47:17 -0400
  5. Path: news1.digex.net!news2.digex.net!howland.reston.ans.net!torn!news.bc.net!rover.ucs.ualberta.ca!alberta!lichtner
  6. From: lichtner@cs.ualberta.ca (Jonathan Lichtner)
  7. Newsgroups: comp.sys.amiga.programmer
  8. Subject: AMOS Pro Problem/Bug
  9. Date: 20 Jul 1995 16:09:36 GMT
  10. Organization: Computing Science, U of Alberta, Edmonton, Canada
  11. Lines: 42
  12. Message-ID: <3ulv40$jc6@scapa.cs.ualberta.ca>
  13. NNTP-Posting-Host: cab101.cs.ualberta.ca
  14. ReSent-Date: Fri, 21 Jul 1995 07:47:15 -0400 (EDT)
  15. ReSent-From: Michael Cox of EDS <mcox@access.digex.net>
  16. ReSent-To: AMOS Mailing List <amos-list@access.digex.net>
  17. ReSent-Message-ID: <Pine.SUN.3.91.950721074715.29414D@access5.digex.net>
  18. Apparently-To: AMOS Mailing List <amos-list@access.digex.net>
  19. Status: RO
  20. X-Status: 
  21.  
  22. I've written a 4-player tank game in AMOS Pro.  I later
  23. decided to add the option of computer control to the
  24. tanks.  I did this and it worked fine when the program
  25. wasn't compiled, but as soon as I compiled it, the AI
  26. system didn't work.
  27.  
  28. For some reason the compiled version of
  29.  
  30.    for t = 85 to 89
  31.       if key state(t)
  32.          if AI(t-84)=true
  33.             ai(t-84)=false
  34.          else
  35.             ai(t-84)=true
  36.              endif
  37.       endif
  38.    next t
  39.  
  40. The problem is that AI()(never "retains"
  41. the value True.  The problem has something to do with
  42. AMOS Pro not handling arrays correctly, since a simple
  43. variable will work in this case.  I am very confused
  44. however since I used many arrays to handle the non-AI
  45. part of the game as well and that part still works.
  46.  
  47. Needless to say, I am very frustrated.  Any help would
  48. be greatly appreciated.
  49.  
  50. Thanks in advance
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Jonathan Lichtner
  64.  
  65.